import request from '@/utils/request'


export default {
  getuserinfo() {
    console.log("mounted7....") 
    return request({
      url: '/user/userinfo/getuserinfo',
      method: 'post'
    })
  },

  reviseapi(data){
    return request({
      url: '/user/userinfo/revise',
      method: 'put',
      data : data
    })
  },
  //查询用户所有信息管理员
  pageList(page, limit, searchObj) {
    return request({
        url: `/user/userinfo/${page}/${limit}`,
        method: `post`,
        data: searchObj
    })
  },

  //根据id获取信息
  getidbyinfo(id){
    return request({
      url: `/user/userinfo/getidbyinfo/${id}`,
      method: 'get',

    })
  },


}
